/**
 * @properties={typeid:35,uuid:"83B4BCB3-B94F-469A-803D-56941B7E04A4",variableType:93}
 */
var fFechaDesde = null;

/**
 * @properties={typeid:35,uuid:"BBD42EED-E1C3-442D-80AB-79DCF797C6DF",variableType:93}
 */
var fFechaHasta = null;

/**
 * @properties={typeid:35,uuid:"D3488937-DC4F-4C64-8181-DEF144FD3D5E",variableType:4}
 */
var fFletero = null;

/**
 * Perform the element default action.
 *
 * @param {JSEvent} event the event that triggered the action
 *
 * @properties={typeid:24,uuid:"8F604C36-AF9F-4FC9-928C-A83A110D5670"}
 */
function ira_liq_cabecera_consulta(event) {
	//forms.liq_cabecera_consulta.controller.show()
	globals.mostrarForm("liq_cabecera_consulta")
}

/**
 * Perform the element default action.
 *
 * @param {JSEvent} event the event that triggered the action
 *
 * @properties={typeid:24,uuid:"AA8EE233-E966-4C5F-9687-8F7571CD7742"}
 */
function mostrarTodos(event) {
	controller.loadAllRecords()
}

/**
 * Perform the element default action.
 *
 * @param {JSEvent} event the event that triggered the action
 *
 * @properties={typeid:24,uuid:"FBCB09D4-2D54-44B9-B213-2D8510B0D9A6"}
 */
function buscar(event) {
	
	controller.find()
	
	proveedor_id = fFletero
	if(fFechaDesde != null && fFechaHasta != null)
	{
		var SearchDate = new Date()
		SearchDate = '#'+utils.dateFormat(fFechaDesde,'dd-MM-yyyy')+'...'+utils.dateFormat(fFechaHasta,'dd-MM-yyyy')
		fecha = SearchDate +'|dd-MM-yyyy'
	}
	if (controller.search() == 0)
		globals.gDialog('Error','No se encontraron resultados','OK','CerrarForm')
}

/**
 * Perform the element default action.
 *
 * @param {JSEvent} event the event that triggered the action
 *
 * @properties={typeid:24,uuid:"6578CB46-C6E7-4A51-8CFD-C88353BE0C77"}
 */
function anular(event) {
	fFechaDesde = null
	fFechaHasta = null
}
